package pool.model;

/**
 * Reusable object kept in the pool 
 */
public class DefaultCar implements ICar {
	
	private String id = DEFAULT_ID;
	private boolean inUse;
	
	
	public DefaultCar() {
		System.out.println("Car with default id: " + id + " created!");
	}
	
	public DefaultCar(String id) {
		this.id = id;
		System.out.println("Car with id: " + id + " created!");
	}

	public void go(){
		System.out.println("brum brum");
	}
	
	public void setInUse(boolean inUse) {
		this.inUse = inUse;
	}

	public boolean isInUse() {
		return inUse;
	}
	
	@Override
	public String toString() {
		return "Default Car: " + id;
	}
}
